package org.remembrance.scheduling02.controller;

import org.remembrance.scheduling02.service.impl.rate2.Rate2SendEmailServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.mail.MessagingException;

/**
 * @author remembrance
 * @version 1.0
 * @date 2022/2/16 9:49
 */
@RestController
public class SendEmailController {

    @Autowired
    Rate2SendEmailServiceImpl rate2SendEmailService;

    @RequestMapping("/send")
    public void sendEmail() throws MessagingException {
//        rate2SendEmailService.sendEmails();
        System.out.println("发送邮件");
    }


}
